﻿using Elasticsearch.Synchronize.Domain.Aggregates.SynchronizeAggregate;
using Hangfire;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elasticsearch.Synchronize.Job.Job
{
    public class JobBuilder
    {
        public static void Build()
        {
            RecurringJob.AddOrUpdate<SynchronizeRule>(x => x.Scan(), Cron.MinuteInterval(3));

            RecurringJob.AddOrUpdate<SynchronizeItem>(x => x.Scan(), Cron.MinuteInterval(3));
        }
    }
}